package com.passion.solr.frm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 类描述：solr的schema操作类
 *
 * @author ZhuYin
 * @since 2024年09月23日
 */
@Data
@ApiModel("solr字段配置操作类")
public class SchemaFieldOperateFrm {

    @ApiModelProperty(value = "操作的solr core名称")
    private String coreName;

    @ApiModelProperty(value = "新增/删除字段", example = "add-field/delete-field")
    private String operateType;

    @ApiModelProperty(value = "是否索引")
    private Boolean indexed;

    @ApiModelProperty(value = "字段名称(最好与数据库保持一致)")
    private String name;

    @ApiModelProperty(value = "是否存储")
    private Boolean stored;

    @ApiModelProperty(value = "字段类型")
    private String type;

    @ApiModelProperty(value = "是否允许多值")
    private Boolean multiValued;

}
